package org.example.category.controller;

import org.example.category.service.CategoryService;
import org.example.model.vo.h5.CategoryVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/category")
public class CategoryController {
    @Autowired
    private CategoryService categoryService;
    @RequestMapping("/list")
    public List<CategoryVo> selectAll() {
        return categoryService.selectAll();
    }
}
